home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / Technical.Notes / IIGS / TN.IIGS.104 < prev   
Encoding:
Text File  |  1991-11-15  |  2.0 KB  |  49 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIgs
  8. #104:        Font Manager Fundamentals
  9.  
  10.  
  11. This Technical Note discusses information and philosophy of that typographical
  12. toolset, the Font Manager.
  13. _____________________________________________________________________________
  14.  
  15.  
  16. FixFontMenu only works once per FMStartUp
  17.  
  18. You may have noticed that none of the Font Manager calls that translate font
  19. family numbers to menu item IDs (or vice-versa) require a menu ID as a
  20. parameter.  That's because the Font Manager was designed with the idea that an
  21. application would only need one font menu, so it keeps one correspondence in
  22. private static storage.
  23.  
  24. This means that once someone has called FixFontMenu, any later FixFontMenu call
  25. during that Font Manager session will destroy the results of the first one,
  26. unless all the parameters are identical.  The Font Manager doesn't remove the
  27. font menu items, but it does not return the correct results from FamNum2ItemID
  28. or ItemID2FamNum.
  29.  
  30. This means if you're a new desk accessory, the Font Manager can't help you
  31. create a font menu--attempting to use FixFontMenu will make any application
  32. font menu useless.  You can use Font Manager routines such as CountFamiles,
  33. FindFamily and GetFamInfo to obtain all the information necessary to build your
  34. own font menu (or font choosing dialog box, for that matter--but if you create
  35. a dialog for an NDA, remember that it has to fit in 320 mode also).
  36.  
  37.  
  38. Font styling requires QuickDraw Auxiliary
  39.  
  40. The Font Manager can't create fonts with outline, shadow or italic styles
  41. unless QuickDraw Auxiliary (tool set #18) is present and started.  These facts
  42. are mentioned in pieces other places, but not in one place--if you want normal
  43. Font Manager operations, you must load and start QuickDraw Auxiliary.
  44.  
  45.  
  46. Further Reference
  47. _____________________________________________________________________________
  48. o    Apple IIgs Toolbox Reference, Volumes 1-3
  49.